package cn.yudao.feign;

import cn.yudao.entity.User;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class UserFeignClientFallBackFactory implements FallbackFactory<UserFeignClient> {

    @Override
    public UserFeignClient create(Throwable throwable) {
        return id -> new User("李多",8,"吾儿出问题了");
    }
}
